Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

538
Views
why am I getting this "Cannot find module server.js"?

package.jsonI had a Traversy Media tutorial on how to learn the MERN stack that I was following. I had the first part installed on my desktop and it was working properly. opened it back after two weeks and I am getting '/Users/mohamedsoliman/Desktop/Traversy Media/backend/server.js' the problem here is that the folder structure should have a "backside folder" so server.js should be at "'/Users/mohamedsoliman/Desktop/Traversy Media/backend/backside/server.js'"

Not sure how can I fix this or if that's the only problem I have here ?

This image shows the directory structure I have for the project

This image shows the error I am getting

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Your code is currently nodemon backend/server.js, but it should be nodemon backend/backside/server.js.

over 4 years ago · Santiago Trujillo Report

0

It looks like your server.js is your entry point for the app.

In that case, run the app as follows,

node backend/backside/server.js 
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!